home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 3729 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: cuci.nl!news
  2. From: michaelm@cuci.nl (Michael Mommertz)
  3. Newsgroups: comp.sys.amiga.networking
  4. Subject: How I get PPP online again after system reboot.
  5. Date: 11 Apr 1996 01:39:12 GMT
  6. Organization: Cubic Circle
  7. Message-ID: <2195.6675T132T25@cuci.nl>
  8. Reply-To: michaelm@cuci.nl (Michael Mommertz)
  9. NNTP-Posting-Host: d17.din.cuci.nl
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13. Hello,
  14.  
  15. I have altered the 'AmiTCP:db/provider.conf' script to get PPP
  16. online again after a system reboot.
  17. If anybody knows how to do this with a simple switch please tell me :)
  18. AmiTCP 4.2 worked by just adding the CD switch with PPP.device.
  19.  
  20. AmiTCP knows your IPAddress when you give it to it by:
  21. set IP result
  22. in the provider.conf script.
  23. So what I did was save this to disk and reload it after a reboot.
  24. The file is called 'S:IPAddress'.
  25. When I manually stop AmiTCP I delete this file :)
  26. I added the line 'Delete S:IPAddress' to my 'user-stopnet' file in
  27. AmiTCP:db.
  28.  
  29. I changed the part of 'set IP result'  'MyIPAddress = result
  30.                                         set IP MyIPAddress'
  31.  
  32. Here is my AmiTCP:db/provider script.
  33.  
  34. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  35.  
  36. /* Provider Configuration Follows:
  37. Name            Other
  38. DialUp          1
  39. Interface       ppp
  40. InterfaceConfig "NOID ATH"
  41. NeedSerial      1
  42. IPDynamic       1
  43. IPAddr          0.0.0.0
  44. DestIP
  45. Gateway
  46. Netmask
  47. NSDynamic       0
  48. UseBootP        0
  49. MTU             576
  50. Phone           5443333
  51. */
  52. /* The rest is the Dialer script for this provider */
  53. options results
  54. signal on error
  55.  
  56. if Exists('S:IPAddress') then do
  57.  call Open(file,'S:IPAddress','R')
  58.  call readln(file)
  59.  set IP result
  60.  call Close(file)
  61.  Say "Still Connected....Continuing"
  62.  end
  63. else do
  64. ShowConsole
  65.  
  66. Say "Dialing..."
  67. call CommandState
  68. SendLn "at&d0"
  69.  
  70. call Dial
  71. WaitFor "login:"
  72. SendLn "YOURLOGINNAME"
  73. WaitFor "password:"
  74. SendLn "YOURPASSWORD"
  75. WaitFor "enter:"
  76. SendLn "p"
  77. WaitFor "ppp"
  78. ParseAddrAfter 'your address:'
  79. MyIPAddress = result
  80. set IP MyIPAddress
  81.  call Open(file,'S:IPAddress','Write')
  82.  call writeln(file,MyIPAddress)
  83.  call Close(file)
  84. HideConsole
  85. end
  86.  
  87. exit 0; /* Successful exit */
  88.  
  89. error:
  90. Say "Command on line" SIGL "returned" RC ":" SerScript.LASTERROR
  91. Exit 10
  92.  
  93. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  94.  
  95.  
  96.  
  97. --
  98. Michael Mommertz             Heerlen, The Netherlands
  99. michaelm@cuci.nl      Connecting To The InterNet With An
  100.        Amiga 2000/68030/25Mhz/17MB/Picasso II/CyberGraphX/AmiTCP/PPP.device
  101.  Author Of: Taper and FujSetup.  Both On Aminet --> text/print
  102.  
  103.